package com.kovell.cairngormlite
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.adobe.cairngorm.control.CairngormEventDispatcher;

	public class CairngormliteEvent extends CairngormEvent
	{
		
		public var serviceId:String;
		public var method:String;
		public var args:Array;
		
		public function CairngormliteEvent(eventName:String, serviceId:String, method:String, ...args)
		{
			super(eventName);
			this.serviceId = serviceId;
			this.method = method;
			this.args = args;
		}
		
		public static function dispatchEvent(eventName:String, serviceId:String, method:String, ...args):void{	
			
			CairngormEventDispatcher.getInstance().dispatchEvent(new CairngormliteEvent(eventName, serviceId, method, args));
		}
	}
}